package com.bienvenue.main.ui.fragment.personal;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.bienvenue.main.R;
import com.bienvenue.main.adapter.BenefitsListAdapter;
import com.bienvenue.main.base.BaseFragment;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @ProjectName: Bienvenue
 * @Package: com.bienvenue.main.ui.fragment
 * @ClassName: PromptDetailsFragment
 * @Description: java类作用描述
 * @Author: Mr.Chen
 * @CreateDate: 2020/9/9 9:29
 * @UpdateUser: Mr.Chen
 * @UpdateDate: 2020/9/9 9:29
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */


public class PromptDetailsFragment extends BaseFragment {
    List<String> stringList=new ArrayList<>();

    @BindView(R.id.rv_prompt_details_list)
    RecyclerView rvPromptDetailsList;
    BenefitsListAdapter mAdapter;
    @Override
    protected void initData() {

    }

    @Override
    protected void initView(View view) {
        LinearLayoutManager manager=new LinearLayoutManager(getContext());
        manager.setOrientation(LinearLayoutManager.HORIZONTAL);
        rvPromptDetailsList.setLayoutManager(manager);

        mAdapter=new BenefitsListAdapter();
        rvPromptDetailsList.setAdapter(mAdapter);
        stringList.add("上午09:00-下午05:30");
        stringList.add("双休");
        stringList.add("偶尔加班");
        mAdapter.setNewData(stringList);



    }
    @OnClick(R.id.tv_navigation)
    void onNavigation(){
        showToast("此功能暂未实现");
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_prompt_details;
    }
}
